package edu.osu.cse.c651.cryptochess;

public class Player {
	
	/**
	 * This player's opponent.
	 */
	private Player opponent;
	
	/**
	 * This player's color of pieces.
	 */
	private Color color;
	
	/**
	 * Constructs a new player object. This will manage the player's pieces and
	 * track if the player is in check or checkmate. When using this constructor,
	 * please note that the opponent needs to be set for check and checkmate
	 * functionality.
	 * 
	 * @param color the color this player's pieces are
	 */
	public Player(Color color) {
		this.color = color;
	}
	
	/**
	 * Constructs a new player object. This will manage the player's pieces and
	 * track if the player is in check or checkmate. This constructor sets the
	 * opponent information for this player as well.
	 * 
	 * @param color the color this player's pieces are
	 * @param opponent this player's opponent
	 */
	public Player(Color color, Player opponent) {
		this.color = color;
		this.opponent = opponent;
	}
	
	/**
	 * Sets the opponent for this player. This must be set to use the check and
	 * checkmate functionality.
	 * 
	 * @param opponent this player's opponent
	 */
	public void setOpponent(Player opponent) {
		this.opponent = opponent;
	}

	
}
